<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
	Yii::t('app', 'Operator')=>array('index'),
	Yii::t('app', 'Manage'),
);

?>

<div class="page-header">
	<div class="page-title"><h3><?php echo Yii::t('app', 'Operator Management' ) ?></h3></div>
</div>

<h1></h1>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'user-grid',
	'dataProvider'=>$model->searchOperator(),
	'columns'=>array(
		array(
			'header' => Yii::t('app', 'No.'),
			'type' => 'raw',
			'value' => '$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)',
			'headerHtmlOptions' => array('width' => '30px','style' => 'text-align:center;'),
			'htmlOptions' => array('style' => 'text-align:center;')
		),
		array(
			'header' => Yii::t('app', 'Operator Name'),
			'name' => 'nickname',
		),
		'profile_id',
		'last_login_time:time',
		array(
			'header' => Yii::t('app', 'Operator Created Time'),
			'type' => 'time',
			'name' => 'created_time',
		),
		// actions
		array(
			// 'header'=>Yii::t('app', 'Actions'),
			'class'=>'CButtonColumn',
			'updateButtonImageUrl'=>false,
			'updateButtonLabel'=>Yii::t('app', 'Update'),
			'updateButtonOptions'=>array('class'=>'btn btn-primary'),
			'deleteButtonImageUrl'=>false,
			'deleteButtonLabel'=>Yii::t('app', 'Delete'),
			'deleteButtonOptions'=>array('class'=>'btn btn-danger'),
			'template'=>'{update} {delete}',
			'headerHtmlOptions'=>array('class'=>'span3'),
		),
	),
	'itemsCssClass'=>'table table-bordered table-hover',
	'cssFile'=>false,
)); ?>
